<?php
    abstract class Personne {
        //Alias sur table : aucun
        public $id_personne;
        public $civilite;
        public $profil;
        public $mdp;
        public $nom;
        public $prenom;
        public $telephone;
        public $mobile;
        public $email;
        public $date_naissance;
        public $date_ajout;
        public $date_modif;
        public $valide;
        
        //GETTERS ET SETTERS
        public function getId() {return $this->id_personne;}
        public function getCivilite() {return $this->civilite;}
        public function getProfil() {return $this->profil;}
        public function getMdp() {return $this->mdp;}
        public function getNom() {return $this->nom;}
        public function getPrenom() {return $this->prenom;}
        public function getTelephone() {return Tools::getterPhone($this->telephone);}
        public function getMobile() {return Tools::getterPhone($this->mobile);}
        public function getEmail() {return $this->email;}
        public function getDateNaissance($format = "Y-m-d") {return Tools::getterDate($this->date_naissance, $format);}
        public function getDateAjout($format = "Y-m-d H:i:s") {return Tools::getterDate($this->date_ajout, $format);}
        public function getDateModif($format = "Y-m-d H:i:s") {return Tools::getterDate($this->date_modif, $format);}
        public function getValide() {return $this->valide;}

        public function setId($temp) {$this->id_personne = intval($temp);}
        public function setCivilite($temp) {$this->civilite = $temp;}
        public function setProfil($temp) {$this->profil = $temp;}
        public function setMdp($temp) {$this->mdp = $temp;}
        public function setPrenom($temp) {$this->prenom = $temp;}
        public function setNom($temp) {$this->nom = $temp;}
        public function setTelephone($temp) {$this->telephone = Tools::setterPhone($temp);}
        public function setMobile($temp) {$this->mobile = Tools::setterPhone($temp);}
        public function setEmail($temp) {$this->email = $temp;}
        public function setDateNaissance($temp) {$this->date_naissance = Tools::setterDate($temp);}
        public function setDateAjout($temp) {$this->date_ajout = Tools::setterDate($temp);}
        public function setDateModif($temp) {$this->date_modif = Tools::setterDate($temp);}
        public function setValide($temp) {$this->valide = intval($temp);}
    }

?>